// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

/*获取子系统列表*/
export async function getMenuList() {
  return request('/api/v1/homepageNavi/list', {
    method: 'POST',
  });
}

/*添加子系统*/
export async function addSubSystem(params: any) {
  return request('/api/v1/subSystem/createSubSystem', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
/*删除子系统*/
export async function delSubSystem(params: any) {
  return request('/api/v1/subSystem/delSubSystem', {
    method: 'POST',
    params: {
      ...params,
    },
  });
}
/*更新子系统*/
export async function updateMenuList(params: any) {
  return request('/api/v1/homepageNavi/update', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

export async function updateUpAndDown(params: any) {
  return request('/api/v1/homepageNavi/updateUpAndDown', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}

/*获取子系统信息*/
export async function getSubSystem(params: any) {
  return request('/api/v1/subSystem/getSubSystem', {
    method: 'GET',
    params: {
      ...params,
    },
  });
}
